#include "server.hpp"

void Usage() { printf("\n\tUsage : ./srever port[port>1024]\n\n"); }

int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        Usage();
        exit(-1);
    }
    uint16_t port = std::stoi(argv[1]);
    Server ts(port);
    ts.Init();
    ts.Start();
    return 0;
}